package graduation.dao;

import java.util.List;

import graduation.entity.User;
import graduation.vo.PageVO;

public interface UserDao {

	
	public User findByEmail(String email);

	public User findByPhone(String phone);
	/**
	 * 查询所有用户
	 * @return
	 */
	public PageVO getAllUser(int page,int size);

	public User getUserById(String id);

	public void deleteUser(User user);

	public void addUser(User user);

	public void update(User user);

	public List<User> findUserByName(String name);



}
